use dioxus::prelude::*;

#[component]
pub fn TopNav(sidebar_collapsed: Signal<bool>) -> Element {
    rsx! {
        nav { class: "top-nav",
            button { 
                class: "menu-toggle",
                onclick: move |_| sidebar_collapsed.toggle(),
                "≡" 
            }
            h1 { class: "title", "Material Dashboard 2" }
        }
    }
}
